
/**
 * Write a description of class Motor here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Motor implements Calculadora
{
  private double valor1;
  private double valor2;
   
    public  double sumar(){
        return valor1 + valor2;
        
    }
    
    public  double restar(){
        return valor1 - valor2;
        
    }
    
    public  double dividir(){
        return valor1 / valor2;
        
    }
    
        public  double multiplicar(){
        return valor1 * valor2;
        
    }
    
    public void SetValor1( double var1 ){
       valor1 = var1;
    }
    
    public double GetValor1(){
       return this.valor1;
    }
   
    public void SetValor2( double var2 ){
       valor2 = var2;
    } 
    
    public double GetValor2(){
       return this.valor2;
    }

   

}
